/*
* @Author: Administrator
* @Date:   2018-07-25 20:12:39
* @Last Modified by:   Administrator
* @Last Modified time: 2018-07-25 20:17:02
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var models = require('./models');

for(var m in models){
	mongoose.model(m,new Schema(models[m]));

	module.exports = {
		getModel:function(type){
			return mongoose.model(type);
		}
	}
}